let http = require('http');
let server=http.createServer((req,res)=>{
    res.setHeader('content-type','text/html;charset=utf-8');
    if(req.url=='favicon.ico'){
        return;
    }
    if(req.url=='/'||req.url=='/index'){
        res.end('首页');
    }else if(req.url=='/login'){
        res.end('登录页面');
    }else if(req.url=='/reg'){
        res.end('注册页面');
    }else if(req.url=='/info'){
        res.end('用户中心');
    }else{
        res.end('404');
    }
})
server.listen(82,'cwb666.com')